package co.yixiang.modules.activity.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName BargainCountVo
 * @Author hupeng <610796224@qq.com>
 * @Date 2019/12/21
 **/
@Data
public class BargainCountVo implements Serializable {
    private Double  alreadyPrice;
    private Integer count;
    private Integer pricePercent;
    private Integer status;
    private Double price; //剩余的砍价金额
    private Boolean userBargainStatus; // 是否帮别人砍,没砍是true，砍了false

    BargainCountVo(Double alreadyPrice, Integer count, Integer pricePercent, Integer status, Double price, Boolean userBargainStatus) {
        this.alreadyPrice = alreadyPrice;
        this.count = count;
        this.pricePercent = pricePercent;
        this.status = status;
        this.price = price;
        this.userBargainStatus = userBargainStatus;
    }

    public static BargainCountVoBuilder builder() {
        return new BargainCountVoBuilder();
    }


    public static class BargainCountVoBuilder {
        private Double alreadyPrice;
        private Integer count;
        private Integer pricePercent;
        private Integer status;
        private Double price;
        private Boolean userBargainStatus;

        BargainCountVoBuilder() {
        }

        public BargainCountVoBuilder alreadyPrice(Double alreadyPrice) {
            this.alreadyPrice = alreadyPrice;
            return this;
        }

        public BargainCountVoBuilder count(Integer count) {
            this.count = count;
            return this;
        }

        public BargainCountVoBuilder pricePercent(Integer pricePercent) {
            this.pricePercent = pricePercent;
            return this;
        }

        public BargainCountVoBuilder status(Integer status) {
            this.status = status;
            return this;
        }

        public BargainCountVoBuilder price(Double price) {
            this.price = price;
            return this;
        }

        public BargainCountVoBuilder userBargainStatus(Boolean userBargainStatus) {
            this.userBargainStatus = userBargainStatus;
            return this;
        }

        public BargainCountVo build() {
            return new BargainCountVo(alreadyPrice, count, pricePercent, status, price, userBargainStatus);
        }

        public String toString() {
            return "BargainCountVo.BargainCountVoBuilder(alreadyPrice=" + this.alreadyPrice + ", count=" + this.count + ", pricePercent=" + this.pricePercent + ", status=" + this.status + ", price=" + this.price + ", userBargainStatus=" + this.userBargainStatus + ")";
        }
    }
}
